#!/bin/bash

if [ ! -n "$1" ]; then
    echo "no params"
    exit
elif [ $1 == "android" ]; then
    echo "build android"
    ionic cordova build android --prod --release -- --keystore="com.gold.master.jks" --storePassword=maje0245 --alias=gold
elif [ $1 == "ios" ]; then
    echo "build ios"
    ionic cordova build ios --prod --release
elif [ $1 == "install" ]; then
    echo "android install"
	adb install -r platforms/android/build/outputs/apk/android-release.apk
else
    echo "params incorrect"
fi
